package nature.nano.util.provider;

import nature.nano.component.Strings;
import nature.nano.iface.enumer.EnumStringCallback;
import nature.nano.classinfo.ClassInfoLib;
import nature.nano.component.PrimaryProvider;
import nature.nano.control.script.run.MetaRunner;

public class ClassLibrary extends PrimaryProvider {

	@Override
	public void start() {
		outputBegin(Strings.root);
		ClassInfoLib.instance().enumClass(
			new EnumStringCallback() {
				public void onRead(String name) {
					output(Strings.clazz, Strings.clazz, name);
				}				
			});
		outputEnd();
	}
	
	public static void main(String[] args) {
		MetaRunner.run("ClassLibrary[ClassLibrary] > Printer");
	}
	
}
